package com.atung.dao;

import java.util.List;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import com.atung.model.BusOrderCar;
import com.atung.model.BusOrderCarDTO;
import com.atung.provider.BusOrderCarProvider;
import com.atung.response.ResponseBusOrderCarList;

@Mapper
public interface BusOrderCarDAO {

	/**
	 * 新增订单
	 * @param BusOrderCar
	 * @return
	 */
	@InsertProvider(type=BusOrderCarProvider.class,method="saveBusOrderCarProvider")
	Boolean saveBusOrderCar(BusOrderCar BusOrderCar);
	
	
	/**
	 * 获取订单列表
	 * @return
	 */
	@SelectProvider(type=BusOrderCarProvider.class,method="getOrderListProvider")
	List<ResponseBusOrderCarList>getOrderList(@Param("openId")String openId,@Param("orderState")Integer orderState);


	/**
	 * 获取订单详情
	 * @param orderId
	 * @return
	 */
	@SelectProvider(type=BusOrderCarProvider.class,method="orderDetailsProvider")
	BusOrderCarDTO getOrderDetails(@Param("orderId")Long orderId);
}
